#include<iostream>
using namespace std;
struct t
{
	string name;
	int age;
	int score;
};
t s[1010];
void fun(t &a)
{
	(a.age)++;
	a.score *= 1.2;
	if (a.score >= 600) {
		a.score = 600;
	}
}
int main()
{
	int n;
	cin >> n;
	for (int i = 0; i < n; i++) {
		cin >> s[i].name >> s[i].age >> s[i].score;
		fun(s[i]);
		cout << s[i].name <<" "<< s[i].age <<" " << s[i].score << endl;
	}
	return 0;
}